package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Evaluate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface EvaluateMapper {

    public List<Evaluate>evaluateList(@Param("userPhone") String userPhone,
                                      @Param("orderno") String orderno,
                                      @Param("no") int no);

    public int count(@Param("userPhone") String userPhone,
                     @Param("orderno") String orderno);

    public Evaluate xiangQing(@Param("orderno") String orderno);

    public int update(@Param("id") int id);

    public int delete(@Param("id") int id);

    public List<Evaluate>listForCommodityId(@Param("commodityId") int commodityId, @Param("no") int no);

    public int countForCommodityId(@Param("commodityId") int commodityId);

}
